function image = contrastify(imcolor);

red = double(imcolor(:, :, 1));
green = double(imcolor(:, :, 2));
blue = double(imcolor(:, :, 3));

contr = contrast(red);
contg = contrast(green);
contb = contrast(blue);

redc = mat2gray(red .* contr);
greenc = mat2gray(green .* contg);
bluec = mat2gray(blue .* contb);

image = redc;
image(:, :, 2) = greenc;
image(:, :, 3) = bluec;
